<template>
	<div>
		<nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
			<ul class="nav navbar-top-links navbar-right">
				<li @click='change'>
					<a><i class="fa fa-user"></i>欢迎老黄</a>
				</li>
				<li>
					<a ><i class="fa fa-sign-out"></i>退出</a>
				</li>
			</ul>
		</nav>
	</div>

</template>

<script>
	import { listsCounter } from '../vuex/actions'
	export default {
		data() {
			return {
				ab:[{
					name:'小黄',
					ane:'18'
				}]
			}
		},
		methods: {
			change(){
				this.setlist(this.ab)
			}
		},
		vuex: {
		    actions: {
		      setlist: listsCounter
		    }
		}
	}
</script>
<style>

</style>